imageObjectFrom

Constructs an object based upon an existing image.

  1. auto imageObjectFrom(Image from, IAllocator allocator)
    @trusted
    imageObjectFrom
    (
    Impl
    Image
    )
    (
    Image from
    ,
    IAllocator allocator = theAllocator
    )
    if (
    is(Impl == struct) &&
    isImage!Impl
    &&
    isImage!Image
    &&
    isUnsigned!(ImageIndexType!Impl)
    &&
    (ImageIndexType!Impl).sizeof <= (void*).sizeof
    &&
    !is(Impl == shared)
    )
  2. auto imageObjectFrom(Image from, shared(ISharedAllocator) allocator)

Parameters

from Image

Instance to wrap

allocator IAllocator

Allocator to use

Return Value

Type: auto

An ImageObject wrapper around the implementation specified.

See Also

ImageObject

Meta